package com.ocp.macro;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableCaching // 开启redis缓存注解
@SpringBootApplication
@MapperScan(basePackages = {"com.ocp.macro.mapper"})
@EnableGlobalMethodSecurity(securedEnabled = true) // 开启权限注解
public class MacroApplication {

    public static void main(String[] args) {
        SpringApplication.run(MacroApplication.class, args);
    }

}
